public string CreateEndUsers([Bind(Exclude = "ID")] EndUserViewModel model, Guid IdCompany)
        {
            if (ModelState.IsValid)
            {
                model.Login    = model.Login.Trim();
                model.Position = model.Position.Trim();
                var    endUserViewModelDto = Mapper.Map <DTOEndUserViewModel>(model);
                string parametr;

                if (UserCompanyService.CreateEndUser(endUserViewModelDto, IdCompany, out parametr))
                {
                    model.ID = Guid.Parse(parametr);
                    return(JsonConvert.SerializeObject(model));
                }
                return(JsonConvert.SerializeObject(parametr));
            }
            return(ErrorsUsers(ModelState));
        }