Exemplo n.º 1
0
        public Response <PersonAdressViewModel> Delete(long persnr)
        {
            Response <PersonAdressViewModel> result = new Response <PersonAdressViewModel>();

            if (persnr != 0)
            {
                result = backend.DeletePerson(persnr);
            }
            else
            {
                result.success   = "false";
                result.message   = "Missing parameters, check: Id, Persnr,  Fname, Lname, Username";
                result.errorcode = 600;
            }
            return(result);
        }