// CreateUserHandler handle POST /users

CreateUserHandler handle POST /users
// CreateUserHandler handle POST / users
func CreateUserHandler(c *routing.Context) error {
	var user userModels.User
	err := json.Unmarshal(c.Request.Body(), &user)
	if err != nil {
		return http.Error(c, "User could not be created", 400, UsersServiceName())
	}
	userService := getUserService(c)
	err = userService.CreateUser(user)
	if err != nil {
		return http.Error(c, "User could not be created", 400, UsersServiceName())
	} 
	return http.Created(c, "User created successfuly", UsersServiceName())
}
func CreateUserHandler ( c * routing . Context ) error { var user userModels . User err := json . Unmarshal ( c . Request . Body ( ) , & user ) if err != nil { return http . Error ( c , " " , 400 , UsersServiceName ( ) ) } userService := getUserService ( c ) err = userService . CreateUser ( user ) if err != nil { return http . Error ( c , " " , 400 , UsersServiceName ( ) ) } return http . Created ( c , " " , UsersServiceName ( ) ) }
CreateUserHandler handle POST /users
CreateUserHandler handle POST / users
// Try parse post body
 // Get user service
