Esempio n. 1
0
        //delete tipo produto
        public static void DeleteLoginId(Int16 id)
        {
            //busca o arquivo q sera apagado
            Login           objretorno = new Login();
            LoginRepository tpprod     = new LoginRepository();

            objretorno = tpprod.Find(id);

            //passa a entidade recuperada para deletar
            tpprod.Delete(objretorno);
            tpprod.Save();
        }
Esempio n. 2
0
        public async Task Delete(LoginDTO item)
        {
            using (var repo = new LoginRepository())
            {
                Login existing = await repo.GetById(item.Id);

                if (existing == null)
                {
                    return;
                }
                await repo.Delete(existing);

                await repo.Commit();
            }
        }
Esempio n. 3
0
        public IHttpActionResult DeleteRejectUser([FromUri] int id)
        {
            loginDB.Delete(id);

            return(StatusCode(HttpStatusCode.NoContent));
        }