public ActionResult CreateCompany(Company company)
        {
            var manager = new CompanyManager();

            manager.CreateCompany(company);
            return(View("Index"));
        }
Exemple #2
0
        public async Task <IHttpActionResult> CreateCompany(CompanyCreateModel data)
        {
            try
            {
                string userId = User.Identity.GetUserId();

                Helpers.Helpers.AddBaseProperties(data, "create", userId);

                return(Ok(await CompanyService.CreateCompany(data)));
            }
            catch (Exception)
            {
                throw;
            }
        }