public async Task <IActionResult> Create(STD_People data)
        {
            int lastId = await this.uow.STD_PeopleRepository.Insert(data);

            data.Id = lastId;
            return(Created("", data));
        }
        public async Task <IActionResult> GetOne(int id)
        {
            STD_People people = await this.uow.STD_PeopleRepository.GetById(id);

            if (people == null)
            {
                return(NotFound());
            }

            return(Ok(people));
        }
        public async Task <IActionResult> Update(int id, STD_People data)
        {
            var foo = await this.uow.STD_PeopleRepository.GetById(id);

            if (foo == null)
            {
                return(NotFound());
            }

            var user = data.MapTo <STD_People>(mapper);

            mapper.Map <STD_People, STD_People>(user, foo);
            await this.uow.STD_PeopleRepository.Update(foo);

            return(Ok(foo));
        }