public ResponseModel AddPerson(PersonViewModel person) { ResponseModel res = new ResponseModel(); if (_personBL.AddPerson(person)) { res.ErrorCode = 200; res.Message = QueryResource.SuccessfulMsg; } else { res.ErrorCode = (int)HttpStatusCode.InternalServerError; res.Message = QueryResource.InvalidResponse; } return(res); }
public void AddPerson(Person person) { PersonBL.AddPerson(person); }