Exemple #1
0
        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);
        }
Exemple #2
0
 public void AddPerson(Person person)
 {
     PersonBL.AddPerson(person);
 }