/// <summary> /// Function static to Convert an Object Person from Client to API Person (Short object) /// </summary> /// <param name="person">Client Person</param> /// <returns>API Person</returns> public static AP.Persons.Person ToApiShort(this SEV.Person person) { if (person == null) { return(null); } return(new AP.Persons.Person { FirstName = person.FirstName, LastName = person.LastName }); }
/// <summary> /// Function static to Convert an object Person from Client to API Person /// </summary> /// <param name="movie">Client Person</param> /// <returns>API Person</returns> public static AP.Persons.Person ToApi(this SEV.Person entity) { if (entity == null) { return(null); } return(new AP.Persons.Person { Id = entity.Id, FirstName = entity.FirstName, LastName = entity.LastName }); }