public UserProfessionalEntity()
 {
     BasicInfo            = false;
     AddressInfo          = false;
     EducationInfo        = false;
     CareerInfo           = false;
     ServicesInfo         = false;
     ProcessSteps         = new List <CoachingProcessStep>();
     CoachingToolsConfigs = new CoachingToolsConfigurations();
     BankAccount          = new BankAccount();
 }
Esempio n. 2
0
        public async Task <IHttpActionResult> InitializeTool(CoachingToolsConfigurations model)
        {
            if (model == null || model.WheelOfLifeDefaults == null)
            {
                return(BadRequest("You must provide the configuration."));
            }
            try
            {
                var user = await UserManager.FindByNameAsync(User.Identity.Name);

                {
                    user.Professional.CoachingToolsConfigs.WheelOfLifeDefaults = model.WheelOfLifeDefaults;
                    await UserManager.UpdateAsync(user);

                    return(Ok(user.Professional.CoachingToolsConfigs.WheelOfLifeDefaults));
                }
                return(NotFound());
            }
            catch (Exception e)
            {
                return(InternalServerError(e));
            }
        }