const Action = {
  create: function(req, res) {
    res.json({action: 'create'});
  }
}
module.exports = Action;
@@ -1,8 +1,61 @@
+'use strict';%0A%0Alet user = require('../user_model');%0A%0A
 const Ac
@@ -63,18 +63,18 @@
 ion = %7B%0A
-  
+%09%09
 create: 
@@ -98,41 +98,228 @@
 ) %7B%0A
-    res.json(%7Baction: 'create'%7D);
+%0A%09%09let promise = user.create(req.body);%0A%09%09promise.then(succesHandler , errorHandler)%0A%0A%09%09function succesHandler (user)%7B%0A%09%09%09res.status(201).json(user);%0A%09%09%7D%0A%0A%09%09function errorHandler (err) %7B%0A%09%09%09res.status(400).json(err);%0A%09%09%7D
 %0A  %7D
@@ -345,8 +345,9 @@
  Action;
+%0A

create action with promise is created