public Notification Add(RegisterAndAssignPlatformManagerToNetWork entity)
        {
            var notificiation = new Notification();


            var person = new Person
            {
                Id             = new ReferenceGenerator().GenerateId(),
                FirstName      = entity.FirstName,
                MidleName      = entity.MidleName,
                LastName       = entity.LastName,
                ContactAddress = entity.ContactAddress,
                Gender         = entity.Gender
            };



            try
            {
                _ctx.Persons.Add(person);
                _ctx.SaveChanges();
                notificiation.Id      = person.Id;
                notificiation.Message = "registration was successful";
                notificiation.Success = true;
            }
            catch (Exception ex)
            {
                string es = ex.Message;
                notificiation.Message = "registration was not successful";
                notificiation.Success = false;
            }

            return(notificiation);
        }
 /// <summary>
 /// register user for the application by populating the RegisterAndAssignPlatformManagerToNetWork entity
 /// </summary>
 /// <param name="entity">RegisterAndAssignPlatformManagerToNetWork</param>
 /// <returns>notification object {messagge = "carry the message to communicate to the user", Success = true or false}</returns>
 public Notification Add(RegisterAndAssignPlatformManagerToNetWork entity)
 {
     return(_permissionAndAuth.Add(entity));
 }