public IActionResult Create([FromBody] vm.User value)
        {
            var data = this.Mapper.Map <User>(value);

            var id = this.Users.Insert(data);

            return(this.Ok(id));
        }
        public IActionResult Update([FromBody] vm.User value)
        {
            var data = this.Mapper.Map <User>(value);

            if (data.PharmacyId.HasValue)
            {
                this.UpdatePharmacy(data.UserName, data.PharmacyId.Value);
            }

            this.Users.Update(data);

            return(this.Ok());
        }